<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="css/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="css/discover.css"/>
	</head>
	<body>
		
		<div class="web">
			<!--头-->
			<header class="clearfix">
				<div class="backbtn fl"><a href="">Back</a></div>
				<div class="selectBar fr">
					<select name="">
						<option value="">广州市</option>
						<option value="">上海市</option>
						<option value="">北京市</option>	
					</select>
				</div>
				<h3>发现</h3>
			</header>
			<!--主体-->
			<section>
				<div class="searchBar">
					<input type="search" name=""  placeholder="请输入商品名称"/>
					<i class="iconfont icon-fangdajing"></i>
				</div>
				<h6>大家都在搜</h6>
				<div class="search-box">
				<ul class="clearfix">
					<li>寿司</li>
					<li>羽毛球</li>
					<li>火锅</li>
					<li>游泳馆</li>
					<li>电影</li>
					<li>周黑鸭</li>
					<li>KTV</li>
					<li>肯德基</li>
				</ul>
				</div>
				
				<!--热门搜索-->
				
				<div class="hot-search">
					<div class="hot-search-title clearfix">
						<div class="hot-search-icon"><img src="img/icon_fire.png" alt="" /></div>
						<h3>热门搜索</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					
					<div class="hot-search-photo clearfix">
						<div class="search-photo1"><img src="img/search_photo1.jpg" alt="" /></div>
						<div class="search-photo2"><img src="img/search_photo2.jpg" alt="" /></div>
						<div class="search-photo3"><img src="img/search_photo4.jpg" alt="" /></div>
						<div class="search-photo4"><img src="img/search_photo3.jpg" alt="" /></div>
					</div>
				</div>
				
				<!--推荐搜索-->
				<div class="recommend">
					<div class="recommendtitle clearfix">
						<div class="recommend-icon"><img src="img/icon_star.png" alt="" /></div>
						<h3>推荐搜索</h3>
						<i class="iconfont icon-you"></i>
						<h5>更多</h5>
					</div>
					<div class="recommend-photo clearfix">
						<div class="recommend_ps"><img src="img/duck.jpg" alt="" /></div>
						<div class="recommend_ps2"><img src="img/sport_photo1.jpg" alt="" /></div>
						<div class="recommend_ps"><img src="img/movie_photo2.jpg" alt="" /></div>
						
					</div>
					
				</div>
				
			</section>
			
			
			
			<!--尾部-->
			<footer>
				<ul>
					<li><a href="tearmindex.html"><i class="iconfont icon-noun28593cc"></i><p>首页</p></a></li>
					<li><a href="fenlei.html"><i class="iconfont icon-fl"></i><p>分类</p></a></li>
					<li  class="active"><a href="discover.html"><i class="iconfont icon-zhinanzhen"></i><p>发现</p></a></li>
					<li><a href="our.html"><i class="iconfont icon-ren"></i><p>我的</p></a></li>
				</ul>
				
				
			</footer>
		</div>
		
		
		
			<script >
    document.body.style.height  = window.innerHeight+"px";
	</script>
		<script>
		
		/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth /750) + 'px';
													//字体大小 =   1rem单位表示多少个像素* (设备的宽度/设计图宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();

	</script>
	</body>
</html>
